package com.codeoss.framework.workflow.def;

import java.util.HashMap;
import java.util.Map;

public abstract class WorkflowElementDef {
	private Map<String,Object> attrMap=new HashMap<String,Object>();
	
	public void setAttribute(String key,Object value) {
		attrMap.put(key, value);
	}
	
	public Object getAttribute(String key) {
		return attrMap.get(key);
	}
	
	public Object removeAttribute(String key) {
		return attrMap.remove(key);
	}

	public boolean containAttribute(String key) {
		return attrMap.containsKey(key);
	}
	
	public abstract String getType();
}
